efa policy qos map update

Syntax

efa policy qos map update [ --name string | --type string | --rule stringArray ]

Parameters

--name string
Specifies the name of the QoS map.
--type string
Specifies the type of QoS map. Valid options are pcp-tc-map, dscp-tc-map, tc-pcp-map, and tc-dscp-map.
--rule stringArray
Rule in format "dscp|pcp|tc[from value(s) or range], dscp|pcp|tc[to value],dp[DP value]" Example "pcp[0;2-4;6],tc[5],dp[2]" for pcp-tc-map, "pcp[5],tc[1-3;5],dp[1]" for tc-pcp-map. And update apply only to the "to" values, like "tc" and "dp" in pcp-tc-map, "pcp" in tc-pcp-map

Examples

This example updates the mapping for QoS Map named tenant1PcpToTCMap for the PCP values specified in the command.

The original configuration prior to the update is:

efa policy qos map create –-name tenant1PcpToTCMap –-type pcp-tc-map –-rule “pcp[0],tc[7],dp[1]” 
 --rule “pcp[1],tc[6]” --rule “pcp[2-5],tc[4],dp[2]”

To update map pcp 0 and pcp 1 to different traffic classes, run the following command:

efa policy qos map update --name tenant1PcpToTCMap --type pcp-tc-map 
--rule "pcp[0],tc[6],dp[1]" --rule "pcp[1],tc[7]"
+-------------------+------------+------+-----+----+----+
|   QoS Map Name    |  Map Type  | Dscp | Pcp | Tc | Dp |
+-------------------+------------+------+-----+----+----+
| tenant1PcpToTCMap | pcp-tc-map | 0    | 0   | 6  | 1  |
+-------------------+------------+------+-----+----+----+
| tenant1PcpToTCMap | pcp-tc-map | 0    | 1   | 7  | 0  |
+-------------------+------------+------+-----+----+----+
QoS Map details
Success
--- Time Elapsed: 153.400707ms ---

This example updates the mapping for QoS Map named tenant1DscpToTCMap for the DSCP values specified in this command. Mappings that are not specified remain unchanged. Only existing mappings can be updated.

The original configuration prior to the update is:

efa policy qos map create --name tenant1DscpToTCMap --type dscp-tc-map 
--rule "dscp[14-25],tc[7],dp[2]" --rule "dscp[8],tc[1]" --rule "dscp[10],tc[1],dp[1]"

To update DSCP mappings, run the following command:

efa policy qos map update --name tenant1DscpToTCMap --type dscp-tc-map 
--rule "dscp[14-16],tc[1]" --rule "dscp[22-25],tc[5],dp[1]"
+--------------------+-------------+------+-----+----+----+
|    QoS Map Name    |  Map Type   | Dscp | Pcp | Tc | Dp |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 24   | 0   | 5  | 1  |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 25   | 0   | 5  | 1  |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 22   | 0   | 5  | 1  |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 16   | 0   | 1  | 0  |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 14   | 0   | 1  | 0  |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 15   | 0   | 1  | 0  |
+--------------------+-------------+------+-----+----+----+
| tenant1DscpToTCMap | dscp-tc-map | 23   | 0   | 5  | 1  |
+--------------------+-------------+------+-----+----+----+
QoS Map details
Success
--- Time Elapsed: 409.157029ms ---